package com.bootdo.appsystem.service;

import com.bootdo.appsystem.domain.EvaluateDO;
import com.bootdo.appsystem.domain.OrderproductitemsDO;

import java.util.List;
import java.util.Map;

/**
 * 
 * 
 * @author xiaoxiao
 * @email 806191255@qq.com
 * @date 2018-05-12 14:42:14
 */
public interface EvaluateService {
	
	EvaluateDO get(Integer eid);
	
	List<EvaluateDO> list(Map<String, Object> map);
	
	int count(Map<String, Object> map);
	
	int save(EvaluateDO evaluate);
	
	int update(EvaluateDO evaluate);
	
	int remove(Integer eid);
	
	int batchRemove(Integer[] eids);

	/**
	 * 根据订单详情获取评价信息
	 * @param orderproductitemsDO  订单详情数据
	 * @uid uid
	 * @return
	 */
	EvaluateDO getEvaluateByOrderProductitem(OrderproductitemsDO orderproductitemsDO , Integer uid);
}
